<div class="hd-misc">
	<a href="<?php echo Yii::app()->baseUrl; ?>"><h2><?php echo CHtml::encode($this->pageTitle); ?></h2></a>
</div>
<div class="gquicklink-header">
	<?php $this->widget('zii.widgets.CMenu',array(
	'items'=>array(
		array('label'=>'登录', 'url'=>array('/member/login'), 'visible'=>Yii::app()->user->isGuest),
		array('label'=>'注册', 'url'=>array('/member/register'), 'visible'=>Yii::app()->user->isGuest),
		array('label'=>'登出 ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
	)
)); ?>
</div>